PublishPress\Future\Modules\Workflows\Models\WorkflowModel D

Total Complexity 140
Dependencies 14
Dependents 11
Total lines 835
Lines of code 546
Logical lines of code 280
Comment lines 20
Methods 54
Properties 13

Methods 54

Method Rating Maintainability Complexity Lines of code
getFlow()
A
51 9 28
getRoutineNodesTree()
A
46 8 41
getTriggerNodes()
S
57 6 19
getStepFromRoutineTreeRecursively()
S
58 6 16
getRoutineTree()
S
53 5 26
getNodes()
S
53 5 24
updateDebugRayMetadata()
S
56 5 22
getNodeById()
S
58 5 17
createNew()
S
52 4 26
checkHasTriggerInTheFlow()
S
62 4 12
getManualSelectionTrigger()
S
62 4 12
isDebugRayShowWordPressErrorsEnabled()
S
62 3 13
isDebugRayShowQueriesEnabled()
S
62 3 13
isDebugRayShowCurrentRunningStepEnabled()
S
62 3 13
isDebugRayShowEmailsEnabled()
S
62 3 13
updateLegacyActionMetadata()
S
63 3 11
getPartialRoutineTreeFromNodeId()
S
63 3 11
load()
S
65 3 9
getAllNodeTypesByType()
S
65 3 10
getEdges()
S
65 3 10
hasLegacyActionTrigger()
S
65 3 9
getManualSelectionLabel()
S
64 3 10
delete()
S
67 2 8
publish()
S
66 2 9
getPostProperty()
S
72 2 6
getTitle()
S
72 2 6
setTitle()
S
71 2 6
setDescription()
S
71 2 6
setStatus()
S
71 2 6
updateStep()
S
67 2 8
unpublish()
S
70 2 7
isActive()
S
71 2 6
isNodeUpdated()
S
66 2 8
getStepTypeByname()
S
66 2 8
updateManualSelectionMetadata()
S
67 2 8
save()
S
67 2 9
reset()
S
64 1 11
setDebugRayShowEmails()
S
81 1 3
setDebugRayShowCurrentRunningStep()
S
81 1 3
setDebugRayShowWordPressErrors()
S
81 1 3
__construct()
S
68 1 7
setDebugRayShowQueries()
S
81 1 3
checkHasManualSelectionTriggerInTheFlow()
S
80 1 3
checkHasLegacyActionTriggerInTheFlow()
S
80 1 3
getImageDimensionsBySize()
S
65 1 9
setFlow()
S
73 1 5
getStepVersion()
S
78 1 3
getModifiedAt()
S
80 1 3
getStatus()
S
80 1 3
getDescription()
S
80 1 3
getId()
S
80 1 3
getPostPropertyAsString()
S
76 1 4
getPostPropertyAsInt()
S
76 1 4
getUnstranslatedString()
S
68 1 7